<#-- 
 
 crea una clase para c# para la tabla  ${table}...
 Author : Luis Molina...
 
 -->
<#-- variables used internally by the generator... -->
<#assign nameFile="aspx">
<#assign extensionFile="cs">
<#assign languageGenerated="c#">
<#assign description="c#">
<#assign targetDirectory="clases">
<#assign appliesToAllTables="true">
<#-- END variables used internally by the generator... -->


Dim ${table}Obj As New ${table} (Request("id") )
           
<#list table.getFields() as field>
	 
	 <#-- segun el tipo de campo...   -->
	 <#switch field.getType()>
		  <#case "_int">
			 <#if (field.getisForeignKey())>
				${table}Obj.${field} = sf.Entero(lo.comboValorSEleccionado(cmb${field}, ctes.eTipoCampo.id));
			<#else>
				 ${table}Obj.${field}=sf.Entero(${field}.Text)
			</#if>           
			 <#break>
		  <#case "_string">
				${table}Obj.${field}=${field}.Text ;
			 <#break>
		  <#case "_date">
				${table}Obj.${field}=sf.Fecha(${field}.Text)	
			 <#break>
		  <<#case "_boolean">
				${table}Obj.${field}=ck${field}.Checked
			 <#break>
		  <#default>
				${table}Obj.${field}=${field}.Text
	</#switch>   
</#list> 
${table}.update(${table}Obj)
${table}Obj=nothing


  
